package org.xue.mybatisplus.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import org.xue.mybatisplus.entity.User;
import org.xue.mybatisplus.vo.UserClassVo;

import java.util.List;

@Repository
public interface UserMapper extends BaseMapper<User> {
    @Select("select user.*,age.age_name from user,age where user.age=age.age_id  ")
    List<UserClassVo> getAllUsers();
}
